﻿<UserControl x:Class="DeveloperModule.Views.UserSelectionView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             Width="375" Height="65" >
    
    <Grid VerticalAlignment="Center" HorizontalAlignment="Left" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="210" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Border Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5">
            <ComboBox Name="projectManagerComboBox" ItemsSource="{Binding Path=Users}" Width="200" Height="25" 
                                      DisplayMemberPath="FullName"
                                      SelectedValuePath="UserGuid"
                                      SelectedValue="{Binding Path=SelectedUserGuid, UpdateSourceTrigger=PropertyChanged}">
            </ComboBox>
        </Border>
        
        <Border Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5" >
            <StackPanel Orientation="Horizontal">
                <Button Name="changeButton" Content="Select" Width="100" Height="25" Click="changeButton_Click" />
                <Button Name="fixButton" Content="Fix" Margin="10,0,0,0" Click="fixButton_Click" />
            </StackPanel>
        </Border>


    </Grid>
</UserControl>
